package com.baizhi.elastic.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;


@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "elastic",type = "book")
public class Book {
	@Id
	private String id;
	@Field
	private String name;
	@Field
	private String author;
	@Field
	private String press;
}
